﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="RoleList.aspx.cs" Inherits="AnOtherBlog.AJAX.Admin.Users.RoleList" Title="" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<%--
	<div class="framecontentMsg">
		<asp:Label id="lblMsg" runat="server" EnableViewState="False" CssClass="lblMsg"></asp:Label>
	</div>
--%>
	<div id="mainContentRegion">
		<div id="admin_centercontent">
			<div class="sectionHeader">
				<asp:Label ID="lblRoleAdministration" runat="server" Text="Administración de Roles" />
			</div>
			<br />
			<asp:Panel ID="pnlRoles" runat="server" GroupingText="Roles" >
				<asp:DataGrid ID="dgRoles" runat="server" AutoGenerateColumns="false" CssClass="adminTable" >
					<Columns>
						<asp:TemplateColumn HeaderText="<%$ Resources:AdminUsers,hdrDelete %>">
							<ItemTemplate>
								<asp:LinkButton ID="lbDelete" runat="server" CommandName="mydelete"  Text="<%$ Resources:AdminUsers,lbDelete %>"
								CommandArgument='<%# Container.DataItem %>' OnCommand="lbDelete_Click" />
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="<%$ Resources:AdminUsers,hdrRoleName %>">
							<ItemTemplate>
								<%# Container.DataItem %>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</asp:DataGrid>
			</asp:Panel>
			<br />
			<asp:Panel ID="pnlAddRole" runat="server" GroupingText="Agregar Rol" >
				<asp:Label ID="lblRoleName" runat="server" Text="<%$ Resources:AdminUsers,lblRoleName %>" CssClass="label"/><br />
				<asp:TextBox ID="txtRoleName" runat="server" CssClass="textbox" />
				<asp:RequiredFieldValidator ID="rfvRoleName" runat="server" 
					ControlToValidate="txtRoleName" ErrorMessage="Debe indicar un nombre">*</asp:RequiredFieldValidator>
				<br /><br />
				<asp:Button ID="btnSave" runat="server" Text="<%$ Resources:AdminUsers,btnSave %>" OnClick="btnSave_Click" CssClass="button" />
			</asp:Panel>
		</div>
	</div>
</asp:Content>
